package com.yiyahui.project.erp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yiyahui.framework.aspectj.lang.annotation.Excel;
import com.yiyahui.framework.web.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 积分商品对象 yiya_score_goods
 * 
 * @author yiyahui
 * @date 2020-05-12
 */

@ApiModel(value="积分商品对象")
public class YiyaScoreGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 商品名称 */
    @ApiModelProperty(value="商品名称")
    @Excel(name = "商品名称")
    private String name;

    /** 商品价格 */
    @ApiModelProperty(value="商品价格")
    @Excel(name = "商品价格")
    private Long goodsPrice;

    /** 市场价格 */
    @ApiModelProperty(value="市场价格")
    @Excel(name = "市场价格")
    private Long marketPrice;

    /** 上架数量 */
    @ApiModelProperty(value="上架数量")
    @Excel(name = "上架数量")
    private Long putawayNum;

    /** 商品描述 */
    @ApiModelProperty(value="商品描述")
    @Excel(name = "商品描述")
    private String goodsDescription;

    /** 上架时间 */
    @ApiModelProperty(value="上架时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date putawayTime;

    /** 排序 */
    @ApiModelProperty(value="排序")
    @Excel(name = "排序")
    private Integer sn;

    /** 备注 */
    @ApiModelProperty(value="备注")
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGoodsPrice(Long goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public Long getGoodsPrice() 
    {
        return goodsPrice;
    }
    public void setMarketPrice(Long marketPrice) 
    {
        this.marketPrice = marketPrice;
    }

    public Long getMarketPrice() 
    {
        return marketPrice;
    }
    public void setPutawayNum(Long putawayNum) 
    {
        this.putawayNum = putawayNum;
    }

    public Long getPutawayNum() 
    {
        return putawayNum;
    }
    public void setGoodsDescription(String goodsDescription) 
    {
        this.goodsDescription = goodsDescription;
    }

    public String getGoodsDescription() 
    {
        return goodsDescription;
    }
    public void setPutawayTime(Date putawayTime) 
    {
        this.putawayTime = putawayTime;
    }

    public Date getPutawayTime() 
    {
        return putawayTime;
    }
    public void setSn(Integer sn) 
    {
        this.sn = sn;
    }

    public Integer getSn() 
    {
        return sn;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("goodsPrice", getGoodsPrice())
            .append("marketPrice", getMarketPrice())
            .append("putawayNum", getPutawayNum())
            .append("goodsDescription", getGoodsDescription())
            .append("putawayTime", getPutawayTime())
            .append("sn", getSn())
            .append("remarks", getRemarks())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
